from django.contrib import admin

# # Register your models here.
from Comment.models import DetailComment
admin.site.register(DetailComment)

# @admin.register(DetailComment)
# class DetailCommentAdmin(admin.ModelAdmin):
#     list_display = ('id', 'FIRSTNICKNAME', 'COMMENT', 'PRAISE_NUM')
#     # list_per_page设置每页显示多少条记录，默认是100条
#     list_per_page = 50
#     date_hierarchy = 'COMMENT_TIME'  # 详细时间分层筛选
#     # 筛选器
#     list_filter = ('COMMENT_TIME',)  # 过滤器
#     search_fields = ('FIRSTNICKNAME',)  # 搜索字段
#     # list_display_links = ['tbid'] #默认可编辑字段
#     # list_editable =['tbid','title','status'] #可编辑的字段
#     save_as = False
#     # 点击保存并继续编辑
#     save_as_continue = True
#     # save按钮的位置,是True则显示在页面上方